
<?php 
$mobile_no_label = 'Mobile No'; 
$mobile_no = array(
					'id'		=> 'mobile_no',
					'name'		=> 'mobile_no',
					'class'		=> 'inputfield',
					'value'		=> set_value('mobile_no'),
					'maxlength'	=> 120,
);
$name_label = 'Name'; 
$name = array(
					'id'		=> 'name',
					'name'		=> 'name',
					'class'		=> 'inputfield',
					'value'		=> set_value('name'),
);
?>


<div class="contacts" id="contacts">
<div style="float: left; width: 200px;">
<ul>
	<li><a href="<?php echo site_url('contacts/show');?>">All</a></li>
	<li><a href="<?php echo site_url('contacts/show/id/1'); ?>">Friends</a></li>
	<li><a href="<?php echo site_url('contacts/add'); ?>">Add</a></li>
</ul>
</div>
<div style="float: left; width: 700px;" class="contacts-content">
<?php echo form_open($this->uri->uri_string()); ?>

<?php echo form_label($name_label, $name['id']); ?>
<?php echo form_input($name); ?>
<br/>
<?php echo form_label($mobile_no_label, $mobile_no['id']); ?>
<?php echo form_input($mobile_no); ?>
<br/>
<?php echo form_submit('submit','Add'); ?>
<?php echo form_close(); ?>
</div>
</div>